package com.demo.service.impl;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.demo.dao.MenuDao;
import com.demo.model.MenuInfo;
import com.demo.service.MenuService;

public class MenuServiceImpl implements MenuService {

	private MenuDao menuDao;
	protected final Log log = LogFactory.getLog(getClass());

	public MenuServiceImpl(MenuDao menuDao) {
		this.menuDao = menuDao;
	}

	@Override
	public List<MenuInfo> getSubMenu(int superId) {

		return menuDao.getSubMenu(superId);
	}

}
